#include <QtGui/QApplication>
#include <QTranslator>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTranslator qtTranslator, pgTranslator;
    QString qmPath = qApp->applicationDirPath();
    //QStringList languageFiles = KvSettings::getDefaultLanguageFiles();
    pgTranslator.load("powergrid_pt_BR.qm", qmPath+"//ts");
    //qtTranslator.load(languageFiles.at(1), qmPath);
    a.installTranslator(&pgTranslator);
    //a.installTranslator(&qtTranslator);

    MainWindow w;
    w.show();

    return a.exec();
}
